package simel;

public class Passenger
{
    private static long  nextid = 0;

    private long id = nextid++;

    /** when and where did the passenger get created? **/
    private int timeBorn;
    private int floorBorn;
    private int destination;

    /** Where is the passenger now? Not to be modified by students!**/
    protected int floor;

    /** Which elevator is the passenger in? Not to be modified by students! **/
    protected int elevator;

    /** This is called by the simulator... you won't need this. **/
    public Passenger(int time, int floor, int destination)
    {
        this.timeBorn = time;
        this.floorBorn = floor;
        this.floor = floorBorn;
        this.destination = destination;
    }

    /** In conjunction with sim.getTime(), you can compute how long
     * the passenger has been waiting. **/
    public int getTimeBorn()
    {
        return timeBorn;
    }

    public int getFloorBorn()
    {
        return floorBorn;
    }

    /** Where is the passenger going? **/
    public int getDestination()
    {
        return destination;
    }

    /** A GUID for the passenger **/
    public long getID()
    {
        return id;
    }

    /** Where is the passenger now? **/
    public int getFloor()
    {
        return floor;
    }
}
